'''
#encoding:utf-8
file = open("test.txt", "r")

print(file.read())
'''
#encoding:utf-8
import urllib.request

def main():
    url = input("请输入文件网址：").strip()
    infile = urllib.request.urlopen(url)
    s = infile.read().decode()

    counts = countLetters(s.lower())

    for i in range(len(counts)):
        if counts[i] != 0:
            print(chr(ord('a') + i) + " 出现 " + str(counts[i]) + " 次")


def countLetters(s):
    counts = 26 * [0]

    for ch in s:
        if ch.isalpha():
            counts[ord(ch) - ord('a')] += 1

    return counts

main()